﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="Member.aspx.cs" Inherits="Admin_Member" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header">
            <h3>
                Manage Member</h3>
            <ul class="content-box-tabs">
                <li></li>
                <li></li>
            </ul>
            <div class="clear">
            </div>
        </div>
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <%--<asp:TextBox ID="txtFindValue" runat="server" AutoPostBack="True" Width="250px" OnTextChanged="txtFindValue_TextChanged" CssClass="text-input small-input"></asp:TextBox><br />--%>
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <input id="txtFindValue" type="text" runat="server" value="Member Id" onfocus="if(this.value=='Member Id')this.value=''"
                        class="text-input small-input" />
                    <asp:LinkButton ID="lbnSearch" runat="server" CssClass="button" OnClick="lbnSearch_Click"><img src="../images/icons/kinh.png" width="25px" height="20px"/></asp:LinkButton>
                    <br />
                    <br />
                    <div style="border: 1px solid #5fa226; border-radius: 5px;">
                        <asp:GridView ID="grvMember" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                            Width="100%" AllowPaging="true" PageSize="5" BorderColor="#CCCCCC" BorderStyle="None"
                            BorderWidth="1px" CellPadding="3" OnRowCommand="grvMember_RowCommand" OnPageIndexChanging="grvMember_PageIndexChanging">
                            <Columns>
                                <asp:TemplateField HeaderText="ID">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbnView" runat="server" CommandArgument='<%#Eval("M_ID") %>'
                                            CommandName="ViewDetails"><%#Eval("M_ID") %></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Full Name" HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <%#Eval("M_FullName") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Gender">
                                    <ItemTemplate>
                                        <%#Eval("M_Gender") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Phone">
                                    <ItemTemplate>
                                        <%#Eval("M_Phone") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Address" HeaderStyle-Width="300px">
                                    <ItemTemplate>
                                        <%#Eval("M_Address") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Email">
                                    <ItemTemplate>
                                        <%#Eval("M_Mail") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbnRemove" runat="server" CommandName="Remove" CommandArgument='<%#Eval("M_ID") %>'>	<img src="../images/icons/cross.png" alt="Delete" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                Font-Size="16px" />
                        </asp:GridView>
                    </div>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <div style="border: 1px solid #eeeeed; border-radius: 5px;">
                        <table width="100%">
                            <tr>
                                <td style="width: 20%">
                                    ID :
                                </td>
                                <td>
                                    <asp:Label ID="lblID" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Full Name :
                                </td>
                                <td>
                                    <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Birthday :
                                </td>
                                <td>
                                    <asp:Label ID="lblBir" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Gender :
                                </td>
                                <td>
                                    <asp:Label ID="lblGender" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Phone :
                                </td>
                                <td>
                                    <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address :
                                </td>
                                <td>
                                    <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Mail :
                                </td>
                                <td>
                                    <asp:Label ID="lblMail" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    UserName :
                                </td>
                                <td>
                                    <asp:Label ID="lblUser" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Password :
                                </td>
                                <td>
                                    <asp:Label ID="lblPassword" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:View>
            </asp:MultiView>
        </div>
        <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->
    </div>
</asp:Content>
